<?php

/**
 * @author Christoph Vieth <mail@christoph-vieth.de>
 */
include_once 'modules/module.php';

class moduleDial extends module {

    public $renderEngine;
    public $templateData;

    public function __construct() {
        
    }

    public function run($param = NULL) {
        // Initialize module
        parent::__construct('JSON');

        if (is_numeric($_GET['number'])) {
            // Get Data
            include('classes/dx600a.php');
            $my_phone = new dx600a();
            $my_phone->obexConnect();
            $this->templateData['result'] = $my_phone->obexDial($_GET['number']);
            $my_phone->obexDisconnect();
            unset($my_phone);
        } else {
            $this->templateData['result'] = false;
        }
    }

}

?>
